package com.xgp.labblogaffter.config;//package com.xgp.springboot.config;

import com.xgp.labblogaffter.component.LoginHandlerInterceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//使用WebMvcConfigurer可以来扩展springmvc的功能
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {

/*
    //            注册拦截器
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//                WebMvcConfigurer.super.addInterceptors(registry);
        registry.addInterceptor(new LoginHandlerInterceptor()).addPathPatterns("/**").excludePathPatterns("/eqLogin");
    }
*/

}




